<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<script language="JavaScript">
<!--
	function valida_form() {

		var login = document.consulta_usuario.login.value;
		var email = document.consulta_usuario.email.value;

		if (login == "") {
			alert("Insira o login!");
			document.consulta_usuario.login.focus();
			return false;
		} else if (email == "") {
			alert("Insira o email!");
			document.consulta_usuario.email.focus();
			return false;
		}else {
			
			document.forms[0].action = '/cad_evento/ServletConsultaUsuario';
			document.forms[0].submit();
		}

	}
	-->
</script>
<title>Consulta Usuario</title>
</head>
<body>
	<div align="center">
		<form method="get" name="consulta_usuario"  action="">
			Login <input type="text" name="login" id="login">
			Email <input type="text" name="email" id="email"> <input
				type="submit" value="Procurar" onclick="valida_form();"> <a
				href="<%= application.getContextPath() %>/menu.jsp">Voltar para
				Menu</a><br>
			<div align="right">
			</div>
		</form>
		<jsp:include page="/resultado_consulta_usuario.jsp"></jsp:include>
	</div>
</body>
</html>